package 装饰者模式;

public class Decorator implements Sourceable {

    private Sourceable source;

    public Decorator(Sourceable source) {
        this.source = source;
    }

    public void createComputer() {
        source.createComputer();
        System.out.println("扩展其他功能");
    }
}
